// ActionScript file
package com.app.factories{
	import com.adobe.serialization.json.JSONDecoder;
	import com.app.vo.VO;
	public class LoginFactory{
	
		public static function buildPostArrayFromJSON( s:String ):String {
    		var output:String ;
			var parsedObject:Array = new JSONDecoder( s ).getValue();
			output=parsedObject[0]['HAKAKSES'];
			return output;
		}
		public static function doLogout(s:String,vo:VO):VO{
		  if(s=="true"){
			  vo.username="";
			  vo.password="";
			  vo.hakAkses="";
		  }
		  return vo;
		}
	
	}
}